package com.liqw;

import com.liqw.mapper.UserMapper;
import com.liqw.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * Hello world!
 */
@Slf4j
@MapperScan("com.liqw.mapper")
@SpringBootApplication
public class MybatisPlusApp {
    
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(MybatisPlusApp.class, args);
        System.out.println("Hello World!");
        UserService service = context.getBean(UserService.class);
        System.out.println(service.list().toString());
    }
}
